{% extends "base.html" %}
{% block style %}
	h6{
		 text-align:center;
		 font-size:13px;
		 font-weight:100;
		 color:333;
	}
	#login{
		 border:8px solid #777;
		 background:#f4f5f5;
		 padding:15px;
		 margin-top:100px;
	 	 -moz-border-radius:10px;
	 	 -khtml-border-radius:10px;
	 	 -webkit-border-radius:10px;
	 	 border-radius:10px;
 	 }
 	 #login label{
		 font-weight:100;
		 color:333;
 	 }
 	 #login fieldset{
		 border:0;
	 }
	 #login legend , label{
		 font-size:14px;
		 color:#666;
		 font-weight:100;
		 text-align:center;
	}
	hr{
		border:none;
		border-top:2px solid #777;
		height:0;
	}	 
{% endblock %}
{% block left %}
	 <div class="span-7">
	 	 <br />
	 </div>
{% endblock %}
{% block main %}
	 <div class="span-10" id="login">
	 	 <form action="/dologin" method="post">
	 	 <fieldset>
		 <p>
	 	 
		 {%if auth_fail_code == 1%}
		 	 <b>用户名或密码错误</b>
		 {%elif auth_fail_code == 2%}
		 	 <b>请完整填写登录表单</b>
		 {%elif auth_fail_code == 3%}
	 	 	 <b>用户名或密码错误（用户名不存在）</b>
		 {%endif%}

	 	 </p>
	 	 <legend>登录 Yapm</legend>
	 	 <p>
	 		  <label for="id">用户名</label><br />
	 	 	  <input type="text" class="title" name="id" id="id" value="">
	 	 </p>

	 	 <p>
	 		 <label for="passwd">登录密码</label><br />
	 	 	 <input type="password" class="text" id="passwd" name="passwd" value="">
	 	 </p>

		 <br />

		 <p>
	 	 <label>选择角色</label>
	 	 	 <input type="radio" name="role" value="user" checked="true"> 普通用户
	 	 	 <input type="radio" name="role" value="admin"> 管理员
	 	 	 <input type="radio" name="role" value="worker"> 维护人员
	 	 </p>

	 	 <hr />

	 	 <p>
	 	 	 <input type="submit" value="登录">
	 	 	 <input type="reset" value="重置表单">
	 	 </p>

	 </fieldset>
	 </form>

	 </div>
{% endblock %}
{% block right %}
	 <div class="span-7 last">
	 	 <br />
	 </div>
{% endblock %}
